﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BuXiaChu.OrderDishes.Model;

namespace BuXiaChu.OrderDishes.BLL.ModelExtensions
{
    public static class ShareCodeExtension
    {
        public static ShareCodeModel Clone(this ShareCodeModel source)
        {
            var model = new ShareCodeModel();
            model.ClassID = source.ClassID;
            model.CodeID = source.CodeID;
            model.Name = source.Name;
            model.NameEn = source.NameEn;
            model.ParentId = source.ParentId;
            model.CreateDate = source.CreateDate;
            model.LastUpdateDate = source.LastUpdateDate;
            return model;
        }
    }
}
